package cn.edu.xjtu.nbrash.xbarsuite;

import android.app.Activity;
import android.os.Bundle;
import android.util.Base64;
import android.view.View;
import android.widget.Toast;

public class HelloWorld extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		// Terry!
		setContentView(R.layout.activity_hello_world);
	}

	public void test(View v) {
		Toast.makeText(this,
				new String(Base64.encode("hello".getBytes(), Base64.DEFAULT)),
				Toast.LENGTH_SHORT).show();
		Toast.makeText(this, new String(Base64.decode("", Base64.DEFAULT)),
				Toast.LENGTH_SHORT).show();
	}
}
